<?PHP

 // MinBS - Minimalist Blogging System
 // Developed by Juliano "tibone" Flores
 // http://code.google.com/p/minbs

require_once('required.php');
session_start();
if(!$_SESSION['minbs']=="logged"){
header("location:index.php");
}
?>

<html>
<head>
<title>MinBS - Minimalist Blogging System</title>
</head>

<body>
<center>
<table height="100%" width="80%" cellspacing="0" border="0" cellpadding="0">
<tr>
 <td>
  <center><font face="Verdana" size="3" color="#AAAAAA">MinBS - Minimalist Blogging System - Main Page</font></center>
 </td>
</tr>
<tr>
 <td >
  <center><font face="Verdana" size="1" color="#AAAAAA">Logged in as <?PHP echo $_SESSION['poster']; ?> :: <a href="logout.php">Logout</a></center>
  </font>
 </td>
</tr>
<tr>
 <td width="100%" valign="top">
 <font face="Verdana" Size="4" color="#AAAAAA">Add a new post category</font><br>
 <form name="form1" action="cat_add_db.php" method="post">
 <font face="Verdana" size="2" color="#000000">
 Category Title : <input type="text" name="title"><br>
 <br>
 <input type="Submit" value="Save New Category"> &nbsp; &nbsp; 
 <input type="Reset" value="Clear"> &nbsp;&nbsp;
 <INPUT TYPE="button" VALUE="Back to Main Page" ONCLICK="window.location.href='admin.php'"> 
 </form>

 </td>
</tr>
<tr>
 <td >
 <center><font face="Verdana" size="1" color="#BBBBBB">MinBS - <?PHP echo $minbs_version; ?></font></center>
 </td>
</tr>
</table>
</center>
</body>
</html>